package org.example.bigwork.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.bigwork.entity.Task;
import java.util.List;

@Mapper
public interface TaskMapper {
    List<Task> findAll();
    List<Task> findByClaimStatus(String claimStatus);
    Task findById(String taskId);
    void updateClaimStatus(@Param("taskId") String taskId, @Param("claimStatus") String claimStatus);
    void updateCompletionStatus(@Param("taskId") String taskId, @Param("completionStatus") String completionStatus);
    void insert(Task task);
    void update(Task task);
    void delete(String taskId);
}